package org.lqq.client;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * Created by 李清泉 on 2017/10/27.
 *
 * @remark
 */
public class SimpleHttpContextListenerClient implements ServletContextListener {

    private ServletContext servletContext;

    private Client client;


    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        ServletContext servletContext = servletContextEvent.getServletContext();
        this.servletContext = servletContext;
        client=new EtcdClient();
        client.runAPP("");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {

    }
}
